import { onTabItemTap } from '@dcloudio/uni-app'
import { useNavStore } from '@/stores'
const { setTapCurNav } = useNavStore()

export const useLocalMixin = () => {
  onTabItemTap(async (item: any) => {
    console.log('item', item)
    setTapCurNav(item.index)
  })
}
